package com.woniu.api;

import com.woniu.dto.CheckDto;
import com.woniu.dto.CheckListDto;
import com.woniu.dto.QueryCheckDto;
import com.woniu.param.CreateOrModifyCheckParam;
import com.woniu.param.DelCheckParam;
import com.woniu.param.QueryCheckParam;
import com.woniu.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "check", contextId = "check", path = "check")
@Api(tags = "检查项目")
public interface HisCheckAPI {

    @ApiOperation("创建或修改")
    @PostMapping("/createOrModifyCheck")
    Result<CheckListDto> createOrModifyCheck(@RequestBody CreateOrModifyCheckParam createOrModifyCheckParam);

    @ApiOperation("删除")
    @DeleteMapping("/delCheck")
    Result delCheck(@RequestBody DelCheckParam delCheckParam);

    @ApiOperation("查询")
    @GetMapping("/queryCheck")
    Result<QueryCheckDto> queryCheck(@RequestBody QueryCheckParam queryCheckParam);

    //修改检查项目的缴费状态
    @ApiOperation("修改检查项目的缴费状态")
    @PostMapping("/changeCheck")
    Result changeCheck(@RequestParam("patientId") Integer patientId);
}
